package com.shopping.redis;

public abstract class BaseKey implements KeyPrefix{

    private int expireSeconds;
    private String prefix;

    public BaseKey(String prefix){
        this(0,prefix);
    }

    public BaseKey(int expireSeconds,String prefix){
        this.expireSeconds=expireSeconds;
        this.prefix=prefix;
    }

    @Override
    public int expireSeconds() {
        return expireSeconds;
    }

    @Override
    public String getPrefix() {
        return prefix;
    }
}
